<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class UserProject extends Model
{
    protected $fillable = ['user_id', 'task_id', 'is_default'];


    /**
     * 获取与用户关联的电话号码
     */
    public function users()
    {
        return $this->hasOne('App\Models\User',"id","user_id");
    }
}